package com.business.sys.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 范围字典项表 实体类
 * @author generator
 * @date 2019-11-29 13:55:01
 * @since 1.0
 */
@TableName(value = "sys_dictionary_scope_item")
public class DictionaryScopeItem extends Model<DictionaryScopeItem> {

	private static final long serialVersionUID = 1L;

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 字典项
	 */
	private String name; 

	/**
	 * 最小值
	 */
	@TableField(value = "min_value")
	private double minValue; 

	/**
	 * 最大值
	 */
	@TableField(value = "max_value")
	private double maxValue; 

	/**
	 * 字典类型
	 */
	@TableField(value = "type_id")
	private Integer typeId; 

	/**
	 * 显示状态(取业务字典：0隐藏1显示)
	 */
	private Integer state;

	private Integer sort;
	// columns END

	@Override
	protected Serializable pkVal() {
		return id;
	}

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public double getMinValue() {
		return minValue;
	}

    public void setMinValue(double minValue) {
    	this.minValue = minValue;
    }
	public double getMaxValue() {
		return maxValue;
	}

    public void setMaxValue(double maxValue) {
    	this.maxValue = maxValue;
    }
	public Integer getTypeId() {
		return typeId;
	}

    public void setTypeId(Integer typeId) {
    	this.typeId = typeId;
    }
	public Integer getState() {
		return state;
	}

    public void setState(Integer state) {
    	this.state = state;
    }

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[name:" + getName() + "]";
		log += "[minValue:" + getMinValue() + "]";
		log += "[maxValue:" + getMaxValue() + "]";
		log += "[typeId:" + getTypeId() + "]";
		log += "[state:" + getState() + "]";
		return log;
	}
}